package Homework10_2;

public class Desk {
	public  boolean flag;
	
	public Desk() {
		this(false);
	}
	public Desk(boolean flag) {
		super();
		this.flag = flag;

	}

	public  final Object lock=new Object();
	
	public boolean isFlag() {
		return flag;
	}
	public void setFlag(boolean flag) {
		this.flag = flag;
	}
	public Object getLock() {
		return lock;
	}
	
	
}
